using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System.Windows;

namespace DrawerMenu.ViewModels;

public partial class SettingsViewModel : ObservableObject
{
    [ObservableProperty]
    private string _title = "设置";

    [ObservableProperty]
    private bool _isDarkMode = false;

    [ObservableProperty]
    private bool _notificationsEnabled = true;

    [ObservableProperty]
    private int _fontSize = 14;

    [RelayCommand]
    private void ApplySettings()
    {
        MessageBox.Show("设置已保存！", "设置", MessageBoxButton.OK, MessageBoxImage.Information);
    }

    [RelayCommand]
    private void ResetSettings()
    {
        IsDarkMode = false;
        NotificationsEnabled = true;
        FontSize = 14;
        MessageBox.Show("设置已重置为默认值！", "设置", MessageBoxButton.OK, MessageBoxImage.Information);
    }
}
